package fzdy.dao.impl;

import fzdy.core.dao.impl.BaseDaoImpl;
import fzdy.dao.IStreetDao;
import fzdy.entity.Street;
import org.apache.commons.collections.map.HashedMap;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class StreetDao extends BaseDaoImpl<Street> implements IStreetDao {
    @Override
    public List test() {
        String hql="select from Street";
        Session session = getSession();
        List l = session.createSQLQuery(hql).list();
        return l;
    }
}
